<!--
	学生主页
-->
<template>
<div class="box">
<el-container>
<el-header>
	<lzk-logo-header></lzk-logo-header>
</el-header>
<el-main>
	<router-view></router-view>
</el-main>
</el-container>
</div>
</template>

<script>
import LogoHeader from "@/components/LogoHeader";
import axios from "@/plugins/axios";
import ipconfig from "@/utils/ipconfig";

export default {
	name: "StudentIndex",
	data(){
		return {
			/**
			 * 学员登录数据
			 */
			studentInfoData:this.$store.state.studentInfoData,
		}
	},
	mounted() {
		// 获取登录数据
		axios.get(ipconfig.address+"/common/logedInfo").then((response)=>{
			if(response.data.code==200){
				this.studentInfoData.loginInfo=response.data.data;
			}else{
				ElMessage.warning(response.data.message);
			}
		}).catch((error)=>{
			console.log(error);
		});
	},
	components:{
		"lzk-logo-header":LogoHeader,
	},
}
</script>

<style lang="scss" scoped>
*{
	margin: 0;
	padding: 0;
}
</style>